package com.bricker.laboratorymanagement.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bricker.laboratorymanagement.business.entity.Approval;
import com.bricker.laboratorymanagement.business.model.AppSelectModel;

import java.util.Map;

public interface ApprovalService extends IService<Approval> {

    //申请加入小组
    public Map<String,String> joinGroup(Long uId, Long groupId);

    //查看当前用户所有接收审批
    public Page<Approval> getApproval(AppSelectModel appSelectModel);

    //更改审批状态
    public Map<String,String> updateStatus(Long uId,String state,Long id);

    Map<String, String> reserveLab(Long userId, Approval approval);

    Map<String, String> approvalReseve(Long uId,String state,Long id);
}
